package com.wang.tool.delivery.base;

import com.wang.tool.util.CommonUtil;

import java.util.Map;

/**
 * @author shaopeng
 * @date 2022/7/22
 */
public class UserBox {

    /**
     * 主用户类型
     */
    private String mainUserType;

    /**
     * 主用户id
     */
    private String mainUserId;

    /**
     * 其他平台账户
     *
     */
    private Map<String, String> otherMap;

    public boolean judgeIsTourist() {
        return CommonUtil.isBlank(mainUserId) || "0".equals(mainUserId);
    }

    public String getMainUserType() {
        return mainUserType;
    }

    public void setMainUserType(String mainUserType) {
        this.mainUserType = mainUserType;
    }

    public String getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(String mainUserId) {
        this.mainUserId = mainUserId;
    }

    public Map<String, String> getOtherMap() {
        return otherMap;
    }

    public void setOtherMap(Map<String, String> otherMap) {
        this.otherMap = otherMap;
    }
}
